<%--
  Created by IntelliJ IDEA.
  User: 张国庆
  Date: 2019/9/15
  Time: 15:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>文章管理页面</title>
    <link  type="text/css" rel="stylesheet" href="layui/css/layui.css">
    <script src="layui/layui.js" type="text/javascript"></script>
    <script src="js/jquery-1.12.4.js" type="text/javascript"></script>
    <script type="text/javascript">
         layui.use(["layer","table","form"],function () {
             var layer=layui.layer;
             var form=layui.form;
             var table=layui.table;
             table.render({
                 elem:"#myTable",
                 url:"article/showPageArticle",
                 page:true,
                 cols:[[
                     {title:"编号",field:"aid"},
                     {title:"名称",field:"aname"},
                     {title:"图片",field:"image"},
                     {title:"内容",field:"content"},
                     {title:"上师编号",field:"guruId"},
                     {title:"日期",field:"time"},
                 ]]
             })
         })
    </script>
</head>
<body>
    <table id="myTable"></table>
</body>
</html>
